/**
 * 工具函数库
 * @type {string}
 */

const TOKENKEY = 'token_key'

const setToken = token => localStorage.setItem(TOKENKEY, token)

const getToken = () => localStorage.getItem(TOKENKEY)

const clearToken = () => localStorage.removeItem(TOKENKEY)

export {setToken, getToken, clearToken}